package com.job.springsea.work0709;

/**
 * @author 于春海
 * @version 1.0
 * @since 2022-07-09 20:04:48
 */
public class Student extends Person{
    protected void study(){
        System.out.println("学习!");
    }
    protected String sort;

    @Override
    protected void eat() {
        System.out.println("去吃饭!");
    }

    @Override
    protected void sleep() {
        System.out.println("回宿舍睡觉!");
    }

    public Student(String name, int age, String sort) {
        super(name, age);
        this.sort = sort;
    }

    public Student() {
    }

    public Student(String sort ){
        this.sort = sort;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }
}